from django.urls import path
from django.urls import include
# from .views import LoginViewSet
from . import views
from rest_framework.routers import SimpleRouter

route = SimpleRouter()
route.register('', views.LoginViewSet, 'login')
route.register('', views.SendSmSView, 'send')
route.register('register', views.RegisterView, 'register')  # /user/register   post请求就是新增

urlpatterns = [
    path('', include(route.urls))
]
